package com.dliu.javadesign.create.abstractfactory;

/**
 * 汽车类型
 * @author yanglei
 * date 2021/3/29 9:45
 */
public interface Type {
    void getType();
}

class Bus implements Type {
    @Override
    public void getType() {
        System.out.println("公交汽车");
    }
}

class Bike implements Type {
    @Override
    public void getType() {
        System.out.println("自行车");
    }
}
